<template>
  <section>
    <!--工具条-->
    <el-col :span="24" class="toolbar" style="padding-bottom: 0px;">
      <el-form :inline="true" :model="filters">
        <el-form-item>
          <el-input v-model="filters.name" placeholder="手机号"></el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="getSms">查询</el-button>
        </el-form-item>
      </el-form>
    </el-col>
    <!--列表-->
    <el-table :data="sms" highlight-current-row v-loading="listLoading" style="width: 100%;">
      <el-table-column prop="sms_id" label="短信id" width="80" sortable></el-table-column>
      <el-table-column prop="mobile" label="手机号码"></el-table-column>
      <el-table-column prop="verify_code" label="验证码"></el-table-column>
      <el-table-column prop="create_time" label="创建时间" sortable></el-table-column>
    </el-table>
  </section>
</template>
<script>
import NProgress from 'nprogress'
import config from 'src/config'
import axios from 'src/common/ajax'

export default {
  data() {
      return {
        filters: {
          name: ''
        },
        listLoading: false,
        sms: []
      }
    },
    methods: {

      getSms() {
        this.listLoading = true
        NProgress.start()
        this.sms = []
          this.total = this.sms.length
          this.listLoading = false
          NProgress.done()
      },
    },
    mounted() {
      this.getSms()
    }
}
</script>
<style scoped>
</style>
